﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Emoney.UserTraining.Model;

namespace Emoney.UserTraining.BLL
{
    public class Traning_MeetingTypeBLL
    {
        private readonly DAL.Traning_MeetingTypeDAL dal = new DAL.Traning_MeetingTypeDAL();
        /// <summary>
        /// 查询所有数据
        /// </summary>
        /// <returns></returns>
        public List<Traning_MeetingType> GetAllList()
        {
            return dal.GetAllList();
        }

        /// <summary>
        /// 修改添加
        /// </summary>
        /// <param name="model"></param>
        public void AddUpdate(Traning_MeetingType model)
        {
            dal.AddUpdate(model);
        }

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int Delete(int id)
        {
            return dal.Delete(id);
        }
    }
}
